<script>
  export default {
    name: 'SchoolComponents',
    data() {
      return {
        schoolName: '尚硅谷',
        address: "北京"
      }
    }
  }
</script>

<template>
    <div class="school">
        <h3>学校名称: {{schoolName}}</h3>
        <h3>学校地址: {{address}}</h3>
    </div>
</template>

<style scoped>
  .school {
    background-color: gold;
    color: red;
  }
</style>